/***************************************************************************
 *   Copyright (C) 2009 by Marcin Swiechowicz   *
 *   marcin.swiechowicz@gmail.com   *
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 *   This program is distributed in the hope that it will be useful,       *
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
 *   GNU General Public License for more details.                          *
 *                                                                         *
 *   You should have received a copy of the GNU General Public License     *
 *   along with this program; if not, write to the                         *
 *   Free Software Foundation, Inc.,                                       *
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
 ***************************************************************************/
#ifndef KDCDISC_H
#define KDCDISC_H

#include <QList>

#include <kdcnamespace.h>
#include "kdcobject.h"
#include "kdcvts.h"
#include "kdcmenu.h"
#include "kdcmovie.h"
#include "kdcdiscsettings.h"

class KDCDisc : public KDCObject
{
public:
	KDCDisc( KDC::DiscType aType );
	~KDCDisc();
	
	int id() const;
	KDCDiscSettings* settings() const;
	
	KDC::DiscType type() const;
	QString title() const;
	KIcon icon() const;
	
	void add( KDCVTS *aVts );
	void add( KDCMenu *aMenu );
	void add( KDCMovie *aMovie );
	void remove( KDCVTS *aVts );
	void remove( KDCMenu *aMenu );
	void remove( KDCMovie *aMovie );
	
	const QList<KDCVTS*>& vts() const;
	const QList<KDCMovie*>& movies() const;
	KDCMenu* menu() const;
	quint64 size() const;
private:
	KDC::DiscType pDiscType;
	KDCMenu *pMenu;
	QList<KDCVTS*> pVts;
	QList<KDCMovie*> pMovies;
	int pId;
	KDCDiscSettings *pSettings;
};
#endif
